package com.example.Mapper;


import com.example.entity.Module;
import com.example.entity.Role;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface RoleuMapper {
    @Select( "select * from role")
    List<Role> select(Role role);

    @Insert("insert into role values(null,#{roleName},#{roleCode})")
    int insert(Role role);

    @Update("update role set roleName=#{roleName}, roleCode=#{roleCode} where roleId=#{roleId}")
    int update(Role role);

    @Delete("delete from role where roleId=#{roleId}")
    int delete(Role role);

}
